<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'ping';
$return=array();
/*******ping*******/
if($_RQ['op']=='ping'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('ping',$postdata);
		exi('设置成功');
	}
	$return['item']=$this->plugin_setting('ping');
	$htmls=array(
		'type'=>'edit',
		'desc'=>'拼团说明',
		'edit'=>array(
				array('type'=>'richtext','title'=>'拼团说明','name'=>'content','help'=>''),
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}
if($_RQ['op']=='about'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('about',$postdata);
		exi('设置成功');
	}
	$return['item']=$this->plugin_setting('about');
	$htmls=array(
		'type'=>'edit',
		'desc'=>'关于我们',
		'edit'=>array(
				array('type'=>'richtext','title'=>'关于我们','name'=>'content','help'=>''),
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}
if($_RQ['op']=='yinsi'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('yinsi',$postdata);
		exi('设置成功');
	}
	$return['item']=$this->plugin_setting('yinsi');
	$htmls=array(
		'type'=>'edit',
		'desc'=>'隐私政策',
		'edit'=>array(
				array('type'=>'richtext','title'=>'隐私政策','name'=>'content','help'=>''),
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}
if($_RQ['op']=='zc'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('zc',$postdata);
		exi('设置成功');
	}
	$return['item']=$this->plugin_setting('zc');
	$htmls=array(
		'type'=>'edit',
		'desc'=>'注册协议',
		'edit'=>array(
				array('type'=>'richtext','title'=>'注册协议','name'=>'content','help'=>''),
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}
